stdio: fix fgets(), add gets()#473
Open
julianuziemblo wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Code Review
This pull request removes the gets stub from posix/stubs.c and provides a functional implementation in stdio/file.c. The implementation introduces a static helper _fgets to share logic between fgets_unlocked and the new gets function, which now correctly handles locking on stdin. I have no feedback to provide as there were no review comments to evaluate.
Unit Test Results10 631 tests 9 961 ✅ 52m 34s ⏱️ Results for commit 469a10e. ♻️ This comment has been updated with latest results. |
8c3af92 to
fb9fffb
Compare
nalajcie
requested changes
May 8, 2026
Member
nalajcie
left a comment
There was a problem hiding this comment.
Adding multiple people before even the test were run (and failed)? Please be more mindful to the potential reviewers,
fb9fffb to
d95659e
Compare
14 tasks
578643c to
1a2af56
Compare
1a2af56 to
469a10e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: phoenix-rtos/phoenix-rtos-project#1489
Description
Motivation and Context
Types of changes
How Has This Been Tested?
ia32-generic-qemuChecklist:
Special treatment